<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      LibTIFF-4.1.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="librsvg.html" title=
          "librsvg-2.46.4">Prev</a>
          <p>
            librsvg-2.46.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libwebp.html" title="libwebp-1.1.0">Next</a>
          <p>
            libwebp-1.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libtiff" name="libtiff"></a>LibTIFF-4.1.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to LibTIFF
        </h2>
        <p>
          The <span class="application">LibTIFF</span> package contains the
          TIFF libraries and associated utilities. The libraries are used by
          many programs for reading and writing TIFF files and the utilities
          are used for general work with TIFF files.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://download.osgeo.org/libtiff/tiff-4.1.0.tar.gz">http://download.osgeo.org/libtiff/tiff-4.1.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 2165e7aba557463acc0664e71a3ed424
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 15 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          LibTIFF Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../x/freeglut.html" title=
          "Freeglut-3.2.1">Freeglut-3.2.1</a> (required for <span class=
          "command"><strong>tiffgt</strong></span>), <a class="xref" href=
          "libjpeg.html" title="libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>,
          <a class="xref" href="libwebp.html" title=
          "libwebp-1.1.0">libwebp-1.1.0</a>, and <a class="ulink" href=
          "http://www.cl.cam.ac.uk/~mgk25/jbigkit/">JBIG-KIT</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libtiff">http://wiki.linuxfromscratch.org/blfs/wiki/libtiff</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of LibTIFF
        </h2>
        <p>
          Install <span class="application">LibTIFF</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir -p libtiff-build &amp;&amp;
cd       libtiff-build &amp;&amp;

cmake -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/libtiff-4.1.0 \
      -DCMAKE_INSTALL_PREFIX=/usr -G Ninja .. &amp;&amp;
ninja</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>ninja
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">ninja install</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">fax2ps, fax2tiff, pal2rgb, ppm2tiff,
              raw2tiff, tiff2bw, tiff2pdf, tiff2ps, tiff2rgba, tiffcmp,
              tiffcp, tiffcrop, tiffdither, tiffdump, tiffgt, tiffinfo,
              tiffmedian, tiffset and tiffsplit</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libtiff.so and libtiffxx.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/doc/tiff-4.1.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="fax2ps" name="fax2ps"></a><span class=
                    "term"><span class=
                    "command"><strong>fax2ps</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a TIFF facsimile to compressed PostScript file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fax2tiff" name="fax2tiff"></a><span class=
                    "term"><span class=
                    "command"><strong>fax2tiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates a TIFF Class F fax file from raw fax data.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pal2rgb" name="pal2rgb"></a><span class=
                    "term"><span class=
                    "command"><strong>pal2rgb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a palette color TIFF image to a full color
                    image.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ppm2tiff" name="ppm2tiff"></a><span class=
                    "term"><span class=
                    "command"><strong>ppm2tiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates a TIFF file from a PPM image file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="raw2tiff" name="raw2tiff"></a><span class=
                    "term"><span class=
                    "command"><strong>raw2tiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a raw byte sequence into TIFF.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiff2bw" name="tiff2bw"></a><span class=
                    "term"><span class=
                    "command"><strong>tiff2bw</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a color TIFF image to grayscale.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiff2pdf" name="tiff2pdf"></a><span class=
                    "term"><span class=
                    "command"><strong>tiff2pdf</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a TIFF image to a PDF document.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiff2ps" name="tiff2ps"></a><span class=
                    "term"><span class=
                    "command"><strong>tiff2ps</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a TIFF image to a PostScript file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiff2rgba" name="tiff2rgba"></a><span class=
                    "term"><span class=
                    "command"><strong>tiff2rgba</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a wide variety of TIFF images into an RGBA TIFF
                    image.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffcmp" name="tiffcmp"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffcmp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    compares two TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffcp" name="tiffcp"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffcp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    copies (and possibly converts) a TIFF file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffcrop" name="tiffcrop"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffcrop</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    selects, copies, crops, converts, extracts and/or
                    processes one or more TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffdither" name="tiffdither"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffdither</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts a grayscale image to bilevel using dithering.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffdump" name="tiffdump"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffdump</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    prints verbatim information about TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffgt" name="tiffgt"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffgt</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    displays an image stored in a TIFF file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffinfo" name="tiffinfo"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffinfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    prints information about TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffmedian" name="tiffmedian"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffmedian</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    applies the median cut algorithm to data in a TIFF file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffset" name="tiffset"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffset</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    sets the value of a TIFF header to a specified value.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tiffsplit" name="tiffsplit"></a><span class=
                    "term"><span class=
                    "command"><strong>tiffsplit</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    splits a multi-image TIFF into single-image TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libtiff-lib" name="libtiff-lib"></a><span class=
                    "term"><code class="filename">libtiff.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the API functions used by the <span class=
                    "application">libtiff</span> programs as well as other
                    programs to read and write TIFF files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libtiffxx" name="libtiffxx"></a><span class=
                    "term"><code class="filename">libtiffxx.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the C++ API functions used by programs to read
                    and write TIFF files.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="librsvg.html" title=
          "librsvg-2.46.4">Prev</a>
          <p>
            librsvg-2.46.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libwebp.html" title="libwebp-1.1.0">Next</a>
          <p>
            libwebp-1.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
